import request from '@/utils/request.js'
export function queryRole(data) {
    return request({
        url: '/role/query',
        method: 'get',
        params: data
    })
}
export function selRole(id) {
    return request({
        url: '/role/'+id,
        method: 'get',
    })
}
export function delRole(id) {
    return request({
        url: '/role/'+id,
        method: 'delete',
    })
}
export function addRole(data) {
    return request({
        url: '/role/add',
        method: 'post',
        data:data
    })
}
export function editRole(data) {
    return request({
        url: '/role/edit',
        method: 'put',
        data:data
    })
}
